package com.fosun.sprcore.tools.generatecode.utils;

import java.io.File;

public class ExtFileUtils {
	/**
	 * 删除文件
	 * @param f
	 */
	public static void deleteDirectory(File f) {
		if(!f.exists()) return;
		for (File fi : f.listFiles()) {
			if (fi.isDirectory()) {
				deleteDirectory(fi);
			} else {
				fi.delete();
			}
		}
		f.delete();

	}
}